package lesosn03;


import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class TestMain3 {
    public static void main(String[] args) {
        try {
            int a = 10;
            System.out.println(a / 1); // a/0 就会异常走catch
            System.out.println("-------处理1-----------");
            FileInputStream fis = new FileInputStream("D://adklfjalkdjflka");
        } catch (ArithmeticException e) {
            System.out.println(e.getMessage());
        } catch (FileNotFoundException e) {
            e.printStackTrace(); // 用另一根线程打印 错误信息，红
        } finally {
            System.out.println("------最终处理--------");
        }




//
//        try {
//
//        } catch () {
//
//        } finally {
//
//        }

    }
}
